package com.ruoyi.workOrder.mapper;

import java.util.List;
import com.ruoyi.workOrder.domain.WorkOrder;
import org.apache.ibatis.annotations.Mapper;

/**
 * 运维工单Mapper接口
 * 
 * @author likui
 * @date 2023-11-16
 */
 @Mapper
public interface WorkOrderMapper {
    /**
     * 查询运维工单
     * 
     * @param workId 运维工单主键
     * @return 运维工单
     */
    public WorkOrder selectWorkOrderByWorkId(Long workId);

    /**
     * 查询运维工单列表
     * 
     * @param workOrder 运维工单
     * @return 运维工单集合
     */
    public List<WorkOrder> selectWorkOrderList(WorkOrder workOrder);

    /**
     * 新增运维工单
     * 
     * @param workOrder 运维工单
     * @return 结果
     */
    public int insertWorkOrder(WorkOrder workOrder);

    /**
     * 修改运维工单
     * 
     * @param workOrder 运维工单
     * @return 结果
     */
    public int updateWorkOrder(WorkOrder workOrder);

    /**
     * 删除运维工单
     * 
     * @param workId 运维工单主键
     * @return 结果
     */
    public int deleteWorkOrderByWorkId(Long workId);

    /**
     * 批量删除运维工单
     * 
     * @param workIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWorkOrderByWorkIds(Long[] workIds);
}
